<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="include/base.jsp" %>
<!DOCTYPE html>
<!-- saved from url=(0035)http://pms.kaishengit.com/main.html -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="shortcut icon" href="../img/favicon.ico" >
	<link rel="stylesheet" href="../css/bootstrap.min.css">
	<link rel="stylesheet" href="../css/bootstrap-responsive.css">
	<link rel="stylesheet" href="../css/docs.css">
	
</head>
<body class="body" style="background: #fbfbf5 url(../img/r.jpg)  0 0;">
	
	<%@ include file="include/top.jsp" %>
	
	
	<div class="container">
	  <div class="row">
		<div class="span8" style="margin-left:250px">
          
          	<div class="page-header">
          		<h1 style="display:inline;">项目列表</h1><a style="margin-left:500px;" href="newproject.jspx" class="btn btn-large btn-success"><i class="icon-plus icon-white"></i>开始一个新项目</a>
          	</div>

          	
	
			<c:if test="${empty projects }">
				<div class="page-header" style="margin-top:80px;">
					  <h1>还没有任何的项目 <small>　　赶紧点击上面的创建项目，让我们一起来完成它吧！！</small></h1>
				</div>
			</c:if>
			<c:forEach items="${projects }" var="s">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="gonewstate.jspx?projectid=${s.id }"><i class="icon-th"></i>${s.projectname }</a>　　　(这个项目您的职位是：
							<c:choose>
								<c:when test="${s.role == '1' }">
									<span style="color:red">负责人</span>
								</c:when>
								<c:when test="${s.role == '2' }">
									<span style="color:red">成员</span>
								</c:when>
								<c:otherwise>
									<span style="color:red">又是成员又是负责人</span>
								</c:otherwise>
							</c:choose>
							
							
						)
					</li>
				</ul>
				<div class="wall" style="background-color: #fff;">
					<p>${s.descript }</p>
				</div>
			</c:forEach>
		    

			
		</div>
		<div class="span3">
			
			

		</div>
	  </div>
	</div>

</body></html>